package com.xkdx.guangguang.presistence.receive;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import com.xkdx.guangguang.module.network.AbsAction;

public class ReceiveAction extends AbsAction {

	String userID, loginToken, exchangCode, productCode;

	public ReceiveAction(String userID, String loginToken, String exchangCode, String productCode) {
		this.userID = userID;
		this.loginToken = loginToken;
		this.exchangCode = exchangCode;
		this.productCode = productCode;
	}

	@Override
	public void constructRequest() {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("DeviceID", "2");
		map.put("UserID", userID);
		map.put("LoginToken", loginToken);
		map.put("ExchageCode", exchangCode);
		map.put("ProductCode", productCode);
		String json = constructJson(map);
		Parameter parameter = new Parameter("productInterface", "ExchangeCode", json);

		List<Parameter> list = new ArrayList<Parameter>();
		list.add(parameter);
		requestData = constructMod(list);

	}

}
